package com.chuxing.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * 笔试信息对象 t_exam
 * 
 * @author 刘祺
 * @date 2024-12-08
 */
@TableName(value ="t_exam")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Exam implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 考试id */
    private Long examId;

    /** 学号 */
    private String studentId;

    /** 考试日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate examDate;

    /** 考试时间(几点钟) */
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime examTime;

    /** 考试状态 未考试，已考试，未通过，已通过 */
    private String examState;

    /** 考试分数 */
    private Long examScore;

//    @JsonFormat(pattern = "yyyy-MM-ddHH:mm:ss")
    private LocalDateTime createTime;

    private LocalDateTime updateTime;

}
